	function text($field, $value, $fieldinfo) {
		extract($fieldinfo);
		$setting = string2array($setting);
		$size = $setting['size'];
		if(!$value) $value = $defaultvalue;
		$type = $ispassword ? 'password' : 'text';
		$errortips = $this->fields[$field]['errortips'];
		if($errortips || $minlength) $this->formValidator .= '$("#'.$field.'").formValidator({onshow:"",onfocus:"'.$errortips.'"}).inputValidator({min:1,onerror:"'.$errortips.'"});';
		$str = '<input type="text" name="info['.$field.']" id="'.$field.'" size="'.$size.'" value="'.$value.'" class="input-text" '.$formattribute.' '.$css.'>';
		if($isunique){
			$str = '<input type="text" name="info['.$field.']" id="'.$field.'" size="'.$size.'" value="'.$value.'" onblur="$.get(\'?m=content&c=content&a=public_check_field&catid='.$this->catid.'&id='.$this->id.'&field='.$field.'&issystem='.$issystem.'&sid=\'+Math.random()*5, {data:$(\'#'.$field.'\').val()}, function(data){if(data==\'1\') {$(\'#'.$field.'\').css(\'background\',\'#fe6b5f\');$(\'#tips_'.$field.'\').html(\'<font color=red>重复了</font>\');$(\':submit\').attr(\'disabled\', true);} else{$(\'#'.$field.'\').css(\'background\',\'#fff\');$(\'#tips_'.$field.'\').html(\'\');$(\':submit\').attr(\'disabled\', false);}})"  class="input-text" '.$formattribute.' '.$css.'> <span id="tips_'.$field.'"></span>';
		}
		return $str;
	}
